﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Freshome.p.Models
{
    public class Pagentry
    {
        public int TotalItems { get; set; }
        public byte PagedItems { get; set; }
        public int CurrentPage { get; set; }
        public int TotalPages
        {
            get { return (int)Math.Ceiling((decimal)TotalItems / PagedItems); }
        }
    }
    public class Recommended
    {
        public List<b.Recipe> Entities { get; set; }
        public b.RecipeCateg Category { get; set; }
    }
}